import string
import random

def stringRandom(number=30):
    all = string.ascii_letters + string.digits
    data = ""
    for i in range(number):
        data += random.choice(all)
    print(data)

if __name__ == '__main__':
    stringRandom()
    stringRandom(number=10)